{% extends request.ajax ? "base_ajax.html" : "base.html" %}

{% block content %}
    <h2>Rules</h2>
    {% if posts %}
        {% for rule in rules %}
            <article>
                <header>
                    <h2>{{ rule.title }}</h2>
                </header>
                <p>{{ rule.description }}</p>
            </article>
        {% endfor %}
    {% else %}
        <div id="notice">There is no any rules.</div>
    {% endif %}
{% endblock %}